package dao;

import pojo.Category;
import pojo.Knowledge;
import pojo.User;

import java.util.List;

/**
 * @author wq3stone
 */
public interface CategoryDao {
    void insertFirstCategory(int uid,String name);
    void insertSecondCategory(int uid,int pcode,String name);
    void delete(int code);
    void update(Category category);
    List<Category> queryFirstCategory(int uid);
    List<Category> querySecondCategory(int pcode);
    int queryFirstCode(int uid,String name);
}
